package com.hds.modules.app.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.hds.modules.app.entity.base.BaseMsgMainBody;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@TableName("tb_msg_main_body")
public class MsgMainBody extends BaseMsgMainBody {
    public static final String STATUS_DELETED = "deleted";
    public static final String STATUS_NORMAL = "normal";

    @TableId
    private Integer id;

    /**
     * name【名称】
     */
    private String name;

    /**
     * avatar【头像】
     */
    private String avatar;

    /**
     * mobile【手机号】
     */
    private String mobile;

    /**
     * 类型[0-医生,1-客服]
     */
    private Integer type;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-mm-dd hh:MM:ss")
    private Date createTime;

    /**
     * 状态['normal','deleted']
     */
    private String status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

}
